home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 13274 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: casbah.acns.nwu.edu!muzaffar
  2. From: muzaffar@casbah.acns.nwu.edu (Usman Muzaffar)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: What is localhost?
  5. Date: 5 Apr 1996 20:00:38 GMT
  6. Organization: Northwestern University, Evanston IL
  7. Message-ID: <4k3u56$eek@news.acns.nwu.edu>
  8. References: <4k24s5$rt1@ustsu10.ust.hk>
  9. NNTP-Posting-Host: casbah.acns.nwu.edu
  10.  
  11. In article <4k24s5$rt1@ustsu10.ust.hk>,
  12. Chui Ka Ming <cskmchui@uxmail.ust.hk> wrote:
  13. >
  14. >Hello all,
  15. >    
  16. >    I am trying to writing a echo server and client. when
  17. >I had started the server and then started client on the same host
  18. >I typed : client localhost port_name . However, the connection
  19. >was refused. I known that some internet program able to bind
  20. >localhost to the offical name. Could you tell me how to write 
  21. >it? For the server, I got the host address by getenv("HOST") 
  22. >then gethostbyname() function.
  23. >
  24. >Thank a lot =>
  25. >Henry Chui
  26. >
  27.  
  28. I think you'd get better responses (and less heat) if you posted
  29. this to comp.unix.programmer or even one of the networking groups.
  30.  
  31.  
  32.